package com.by.course.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 预约
 */
@Data
public class BaseAppointment implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "预约ID")
    private Long id;

    @ApiModelProperty(value = "学生ID")
    private Long userId;

    @ApiModelProperty(value = "课程时间安排ID")
    private Long scheduleId;

    @ApiModelProperty(value = "预约状态：1:预约、2:取消预约")
    private Integer status;

    @ApiModelProperty(value = "预约时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    private static final long serialVersionUID = 1L;
}